
class NoticeListModel {
  dynamic pageNum;
  dynamic pageSize;
  dynamic totalPage;
  dynamic total;
  List<NoticeListItem>? list;

  NoticeListModel({this.pageNum, this.pageSize, this.totalPage, this.total, this.list});

  NoticeListModel.fromJson(Map<String, dynamic> json) {
    pageNum = json["pageNum"];
    pageSize = json["pageSize"];
    totalPage = json["totalPage"];
    total = json["total"];
    list = json["list"] == null ? null : (json["list"] as List).map((e) => NoticeListItem.fromJson(e)).toList();
  }

  static List<NoticeListModel> fromList(List<Map<String, dynamic>> list) {
    return list.map(NoticeListModel.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["pageNum"] = pageNum;
    _data["pageSize"] = pageSize;
    _data["totalPage"] = totalPage;
    _data["total"] = total;
    if(list != null) {
      _data["list"] = list?.map((e) => e.toJson()).toList();
    }
    return _data;
  }
}

class NoticeListItem {
  int? id;
  String? title;
  String? content;
  String? createTime;
  String? labelName;

  NoticeListItem({this.id, this.title, this.content, this.createTime, this.labelName});

  NoticeListItem.fromJson(Map<String, dynamic> json) {
    id = json["id"];
    title = json["title"];
    content = json["content"];
    createTime = json["createTime"];
    labelName = json["labelName"];
  }

  static List<NoticeListItem> fromList(List<Map<String, dynamic>> list) {
    return list.map(NoticeListItem.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["id"] = id;
    _data["title"] = title;
    _data["content"] = content;
    _data["createTime"] = createTime;
    _data["labelName"] = labelName;
    return _data;
  }
}